package com.taoym.voucher.xcx.entity.dto;

import com.taoym.voucher.common.constant.CommonConstant;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author: taoym
 * @date: 2021/5/8 15:39
 * @desc: 更新用户信息参数
 */
@Data
public class XcxUpdateUserInfoDTO implements Serializable {

    @Email(message = "邮箱格式不正确")
    @ApiParam(value = "邮箱")
    private String email;
    @ApiParam(value = "用户的支付宝")
    @Pattern(regexp = CommonConstant.PHONE_REGULAR, message = "支付宝必须为手机号")
    private String zfb;
    @ApiParam(value = "姓名")
    private String zfbName;
}
